package com.dstz.demo.core.manager.impl;

import com.dstz.base.manager.impl.BaseManager;
import com.dstz.demo.core.dao.PayTypeDao;
import com.dstz.demo.core.manager.PayTypeManager;
import com.dstz.demo.core.model.PayType;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 支付方式表 Manager处理实现类
 * @author aschs
 * @email aschs@qq.com
 * @time 2020-02-21 21:20:16
 */
@Service("payTypeManager")
public class PayTypeManagerImpl extends BaseManager<String, PayType> implements PayTypeManager {
	@Resource
	private PayTypeDao payTypeDao;

	@Override
	public List<PayType> findByUserId(Integer userId) {
		List<PayType> payTypes = payTypeDao.findByUserId(userId);
		return payTypes;
	}
}
